﻿<controls:ChildWindow x:Class="WorkSpace.UI.Windows.CategoryWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Title="AddCategory">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <TextBlock Text="名称" Width="75" VerticalAlignment="Center"/>
            <TextBox Name="_ctlEditCaption" Width="200" Text="{Binding Path=Caption, Mode=TwoWay}"/>
        </StackPanel>

        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="OKButton" Content="确定" Click="OKButton_Click"/>
            <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>